package com.test.webflux.config.router;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.RouterFunctions;
import org.springframework.web.reactive.function.server.ServerResponse;

/**
 * TODO
 *
 * @Description
 * @Author lingmin
 * @Date 2025/4/14 16:32
 **/
public class CommonRouter {

    public RouterFunction<ServerResponse> commonRoutes() {
        return RouterFunctions.route()
                .GET("/public/hello", request -> ServerResponse.ok().bodyValue("Public Hello"))
                .build();
    }
}
